projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b2ce5
)
Render empty <ul><li><ul> correctly
author
Lars Magne Ingebrigtsen
<larsi@gnus.org>
Sun, 20 Mar 2016 12:52:36 +0000
(13:52 +0100)
committer
Lars Magne Ingebrigtsen
<larsi@gnus.org>
Sun, 20 Mar 2016 12:58:26 +0000
(13:58 +0100)
* lisp/net/shr.el (shr-tag-ul): Render empty <ul><li><ul>
correctly (bug#22964).
(cherry picked from commit
4f6ea3988b66cf132c67fd0cc26d12eb9a300ba1
)
Backport:
lisp/net/shr.el
patch
|
blob
|
history
diff --git
a/lisp/net/shr.el
b/lisp/net/shr.el
index 07fcbebce087c133fd8c2cbaf2fb255ad7c98444..2c8ff79763f3cc36219d49f864cb0bac17f1c53c 100644
(file)
--- a/
lisp/net/shr.el
+++ b/
lisp/net/shr.el
@@
-1480,6
+1480,10
@@
The preference is a float determined from `shr-prefer-media-type'."
(shr-ensure-paragraph)
(let ((shr-list-mode 'ul))
(shr-generic dom))
+ ;; If we end on an empty <li>, then make sure we really end on a new
+ ;; paragraph.
+ (unless (bolp)
+ (insert "\n"))
(shr-ensure-paragraph))
(defun shr-tag-ol (dom)